//
//  JXHttpRequest.h
//  Demo
//
//  Created by xiu on 2020/4/22.
//  Copyright © 2020 111. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
#import "JXRequestManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface JXRequestConfig : NSObject
@property(nonatomic, strong) NSString *apiHost;
@property(nonatomic, strong) NSString *apiKey;
@property(nonatomic, strong) NSString *appPackage;
@property(nonatomic, strong) NSString *appVer;
@property(nonatomic, strong) NSString *appId;
@property(nonatomic, strong) NSString *uid;
@property(nonatomic, strong) NSString *udid;
@property(nonatomic, strong) NSString *idfa;
@property(nonatomic, strong) NSDictionary *deviceParams;
+ (instancetype)sharedManager;

@end

@interface JXHttpRequest : NSObject
/**
 * @httpMethod POST/GET 请求类型
 * @type   接口类型
 * @params body 参数
 */
- (void)netBody:(id)body result:(void (^)(BOOL isSuccess,id object))callBack;
/**
* @httpMethod POST/GET 请求类型
* @type   接口类型
*/
- (void)requestServerTimeResult:(void (^)(BOOL isSuccess,id object))callBack;
/**
* @httpMethod POST/GET 请求类型
* @type   接口类型
* @params url 参数
*/
- (void)netSocketServerAndPort:(NSString *)url callback:(void (^)(BOOL isSuccess,id object))callBack;

@end

@interface JXHttpRequest (task)
/**
* @httpMethod POST/GET 请求类型
* @type   接口类型
*/
- (void)netOffLineMsgWithUserA:(NSString *)userAID
                         userB:(NSString *)userBID
                        origin:(int)origin
                          size:(int)size
                         topic:(NSString *)topic
                      callBack:(void (^)(BOOL isSuccess,id object))callBack;
/**
* @httpMethod POST/GET 请求类型
* @type   接口类型
*/
- (void)netOffLineMsg:(NSString *)uid many:(NSString *)many callBack:(void (^)(BOOL isSuccess,id object))callBack;
@end

NS_ASSUME_NONNULL_END
